package com.aikon.wht.httpclient;

import java.io.IOException;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.ResponseHandler;
import org.apache.http.util.EntityUtils;

public class CommonResponseHandler implements ResponseHandler<Object> {

	public String handleResponse(HttpResponse response) throws ClientProtocolException, IOException {
		HttpEntity httpEntity = response.getEntity();
		String html = EntityUtils.toString(httpEntity, "utf-8");
		return html;
	}

}
